package com.yourbatis.syntax;

class PrintStatement implements Statement {
    private final Expression expr;

    public PrintStatement(Expression expr) {
        this.expr = expr;
    }

    @Override
    public Object execute() {
        System.out.println(expr.eval());
        return null;
    }

}
